﻿using Aquarinum.WebSocekt.Core.Dtos;

namespace Aquarinum.Base.Infrastructure.WebSocket.MessageHandler.Defaults
{
    [HandlerProperty(MessageType = "GroupPublish")]
    public class DefaultGroupPublishHandleStrategy : MessageHandleStrategyBase, IMessageHandleStrategy
    {
        public override void HandleMessage(WebsocketMessageDto message)
        {
            MessageSendProxy.PublishWithGroup(message.To, message);
        }
    }
}